package com.web.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("recognition_history")
public class RecognitionHistory {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;           // 用户ID
    private String result;         // 识别结果
    private String englishName;    // 英文名称
    private String type;           // 类型：disease/pest/healthy
    private Integer confidence;    // 置信度
    private String imageUrl;       // 原图片URL
    private String location;       // 位置信息
    private String description;    // 识别描述
    private String suggestion;     // 处理建议

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic
    private Integer deleted;
}